package com.mostromas.ess.entities;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

/**
 * 商品价格实体类
 */
@ApiModel(value = "ProductPrice对象",description = "款式价格实体类")
@TableName("mr_product_price")
@Data
public class ProductPrice implements Serializable {
    private static final long serialVersionUID = -1951839317261927234L;

    /**
     * 主键，分布式ID
     */
    @ApiModelProperty(value = "主键")
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    private String id;

    /**
     * 对应款式ID
     */
    @ApiModelProperty(value = "款式ID")
    private String productId;

    /**
     * 成本价
     */
    @ApiModelProperty(value = "成本价")
    private Long costPrice;

    /**
     * 零售价
     */
    @ApiModelProperty(value = "零售价")
    private Long retailPrice;

    /**
     * 批发价
     */
    @ApiModelProperty(value = "批发价")
    private Long tradePrice;
}
